using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Application.Erp;

/// <summary>
/// erp-生产品控驳回
/// </summary>
public class ErpProduceRejectDto : AppEntity
{
    /// <summary>
    /// 驳回编号
    /// </summary>
    [Required]
    [StringLength(50)]
    public string Number { get; set; }

    /// <summary>
    /// 生产订单编号
    /// </summary>
    [Required]
    public long OrderId { get; set; }

    /// <summary>
    /// 工艺路线编号
    /// </summary>
    [Required]
    public long CraftId { get; set; }
    
    /// <summary>
    /// 工艺路线
    /// </summary>
    public ErpProduceCraftSimpleDto Craft { get; set; }

    /// <summary>
    /// 订单工艺路线关系编号
    /// </summary>
    [Required]
    public long RelationId { get; set; } = 0;

    /// <summary>
    /// 原因
    /// </summary>
    public string Cause { get; set; }

    /// <summary>
    /// 回复
    /// </summary>
    public string Reply { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 更新人
    /// </summary>
    public string UpdateUser { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }


}